printing: Create temporary queues for Avahi printers
authorMarek Kasik <mkasik@redhat.com>
Fri, 5 Feb 2021 17:13:34 +0000 (18:13 +0100)
committerMarek Kasik <mkasik@redhat.com>
Fri, 5 Feb 2021 17:35:56 +0000 (18:35 +0100)
commit5d7364960a60d25f4a1c3bdf32ea1d5869e0b2f8
tree088c1a4501b36be537bc4c23b08581403fa0bf73
parent60ff231fac3da797372165ba27dbbfc8602cef7d
printing: Create temporary queues for Avahi printers

This change extends set of Avahi advertised printers which
works with Gtk's CUPS print backend.

It creates a temporary queue (local printer) for each
Avahi printer in CUPS instead of accessing them directly
(via CUPS library).

This makes some printers work which did not work before and
also gives users more options to change in the print dialog.

This also changes naming of printers to be in accordance with CUPS.
It uses '_' instead of '-' and has hostname appended for CUPS remote
printers.
modules/printbackends/gtkprintbackendcups.c
modules/printbackends/gtkprintercups.h